cmake_minimum_required(VERSION 3.5)

project(demo LANGUAGES CXX C)

set(CMAKE_CXX_STANDARD 17)

file(GLOB SOURCE_LIST ${PROJECT_SOURCE_DIR}/*.cpp)

include_directories(${CMAKE_CURRENT_BINARY_DIR})

add_executable(server-hello ${SOURCE_LIST})
add_proto_source(server-hello hello)
add_proto_service(server-hello hello)
target_link_libraries(server-hello
        PRIVATE PkgConfig::GRPC++
        PRIVATE protobuf)
